package sisi.currency;

import java.io.Serializable;
import javax.persistence.*;


/**
 * Currency.java - The persistent class for the <i>currency database table</i>. 
 * @author Pedro Gonzalez pedro@sisisoftware.it
 * @author Claudio Pelosi claudio@sisisoftware.it
 * @author SISI Software S.n.c. - www.sisisoftware.it
 * @version 1.0, 07/07/2014
 * 
 */
@Entity
@Table(name="currency")
public class Currency implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CURRENCY_ID_GENERATOR", sequenceName="CURRENCYSEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CURRENCY_ID_GENERATOR")
	@Column(unique=true, nullable=false)
	private Integer id;

	@Column(length=3)
	private String curr;

	@Column(length=15)
	private String currdesc;

	public Currency() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCurr() {
		return this.curr;
	}

	public void setCurr(String curr) {
		this.curr = curr;
	}

	public String getCurrdesc() {
		return this.currdesc;
	}

	public void setCurrdesc(String currdesc) {
		this.currdesc = currdesc;
	}

}